class AirConfig:
    def __init__(self):
        self.room_list = ['101', '102', '103', '104', '105','106','107','108','109','110',
                          '201', '202', '203', '204', '205', '206', '207', '208', '209', '210',
                          '301', '302', '303', '304', '305', '306', '307', '308', '309', '310',
                          '401', '402', '403', '404', '405', '406', '407', '408', '409', '410',
                          '501', '502', '503', '504', '505', '506', '507', '508', '509', '510']
        self.cal_interval = 10      # 计算间隔
        self.wait_interval = 120     # 等待间隔  改成了两分钟
        self.temp_rate = 0.5        # 默认回温速率
        #后续需要修改，因为文件是以分钟为单位的
        self.temp_rate_speed = [1 / 3, 1 / 2, 1]       # 有风时的回温速率

        # self.room_temp = 26         # 默认室温
        self.max_run = 3            # 一次允许最多的服务房间数
        # self.fee_rates = [1 / 3, 1 / 2, 1]  # 默认费率
        self.fee_rates = 1     #费率不随风速发生变化

        self.cold_sub = 16          # 风速值域
        self.cold_sup = 27
        self.hot_sub = 22
        self.hot_sup = 28
        self.fan_sub="0"
        self.fan_sup="2"
        self.default_work_mode = -1  # 默认工作模式 默认制冷-1
        self.default_fan_speed = "1"    # 默认风速 默认中风1

        self.default_goal_temp_hot = 23    # 制热默认目标温度
        self.default_goal_temp_cold = 25     # 制冷默认目标温度
        self.default_current_temp=26
        self.default_current_temp_hot={'101':16,
                                        '102':15,
                                        '103':18,
                                        '104':19}
        self.default_current_temp_cold={'101':32,
                                       '102':28,
                                       '103':27,
                                       '104':29}
        self.fan_sub="0"   #风速最小值
        self.fan_sup="2"   #风速最大值
        self.fan_limit=["0","1","2"]


config = AirConfig()